import Layout from '@/layout'

const annualReportRouter = {
  path: '/annual-report',
  component: Layout,
  redirect: '/annual-report/business-analysis',
  name: 'AnnualReport',
  meta: { title: '年报系统', icon: 'chart' },
  children: [
    {
      path: 'business-analysis',
      name: 'BusinessAnalysis',
      component: () => import('@/views/annual-report/business-analysis/index.vue'),
      meta: { title: '业务分析', icon: 'nested' }
    },
    {
      path: 'self-service',
      name: 'SelfService',
      component: () => import('@/views/annual-report/self-service/index.vue'),
      meta: { title: '自助查询', icon: 'search', roles: ['admin'] }
    }
  ]
}

export default annualReportRouter